using System;
using System.Threading.Tasks;

namespace DocumentCreationSystem.Examples
{
    /// <summary>
    /// 程序入口点
    /// </summary>
    class Program
    {
        /// <summary>
        /// 程序主入口
        /// </summary>
        static async Task Main(string[] args)
        {
            Console.OutputEncoding = System.Text.Encoding.UTF8;

            try
            {
                Console.WriteLine("文档创建管理系统启动成功！");
                Console.WriteLine("按任意键退出...");
                Console.ReadKey();
                await Task.CompletedTask;
            }
            catch (Exception ex)
            {
                Console.WriteLine($"程序执行失败: {ex.Message}");
                Environment.Exit(1);
            }
        }
    }
}
